﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Titler.Views"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:PMCtrl="clr-namespace:Titler.Controls" x:Name="frm_PMWindow"
        xmlns:root="clr-namespace:Titler"
        xmlns:data="clr-namespace:Titler.ControlModels"
        mc:Ignorable="d" x:Class="Titler.Views.PMView"
        Title="PM Titler" MinWidth="275" Width="275" FontFamily="Segoe UI" FontSize="14pt" SizeToContent="Height"
        ResizeMode="CanMinimize"
        Icon="/Titler;component/Resources/Icons/Titler.ico">

    <Grid>
        <StackPanel x:Name="Stack_Main" Margin="0">
            <GroupBox x:Name="GBox_Thread" Header="Thread Properties" VerticalAlignment="Top" Margin="0,2">
                <PMCtrl:ThreadCtrl Margin="0,5,0,0" FontWeight="Normal"/>
            </GroupBox>
            <GroupBox x:Name="GBox_Material" Header="Material Properties" Height="94" VerticalAlignment="Top" Margin="0,0,0,2">
                <PMCtrl:MaterialCtrl Height="Auto" Margin="0,5,0,0" FontWeight="Normal"/>
            </GroupBox>
            <GroupBox x:Name="GBox_Mandrel" Header="Mandrel Properties" Margin="0,0,0,2">
                <PMCtrl:MandrelCtrl Margin="0,5,0,0" FontWeight="Normal"/>
            </GroupBox>
            <TabControl x:Name="TypeTabControl" Margin="0,0,0,5">
                <TabItem x:Name="GaugeTab" Header="Gauge" FontFamily="Lucida Calligraphy" FontSize="11pt" FontWeight="Bold" Style="{DynamicResource CustomTab}" Height="27" VerticalAlignment="Bottom">
                    <Grid Background="White">
                        <StackPanel>
                            <PMCtrl:GaugeCtrl Margin="0,5,0,0" FontWeight="Normal" Height="255"/>
                        </StackPanel>
                    </Grid>
                </TabItem>
                <TabItem x:Name="ChemicalTab" Header="Check Valve" FontFamily="Lucida Calligraphy" FontSize="11pt" FontWeight="Bold" Style="{DynamicResource CustomTab}">
                    <Grid Background="White">
                        <StackPanel>
                            <PMCtrl:ChemicalCtrl FontWeight="Normal" Margin="0,5,0,0"/>
                        </StackPanel>
                    </Grid>
                </TabItem>
                <TabItem x:Name="ComboTab" Header="Combo" Style="{DynamicResource CustomTab}">
                    <Grid Background="White">
                        <StackPanel Margin="0">
                            <GroupBox x:Name="GBox_ComboGauge" Header="Gauge Properties">
                                <PMCtrl:GaugeCtrl Margin="0,2,0,0" FontWeight="Normal"/>
                            </GroupBox>
                            <GroupBox Header="Check Valve Properties">
                                <PMCtrl:ChemicalCtrl VerticalAlignment="Top" Margin="0,2,0,0" FontWeight="Normal"/>
                            </GroupBox>
                        </StackPanel>
                    </Grid>
                </TabItem>
            </TabControl>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <StackPanel>
                    <Button x:Name="MDwg" Content="M Dwg" d:LayoutOverrides="Height" Margin="2,0,1,2" Click="ButtonClick"/>
                    <Button x:Name="MADwg" Content="MA Dwg" Margin="2,0,1,2"
                            Click="ButtonClick" />
                    <Button x:Name="GMADwg" Content="GMA/CMA Dwg" Margin="2,0,1,2"
                            Click="ButtonClick" />
                </StackPanel>
                <StackPanel Grid.Column="1">
                    <Button x:Name="MPart" Content="M Part" Margin="1,0,2,2"
                            Click="ButtonClick" />
                    <Button x:Name="MAPart" Content="MA Part" Margin="1,0,2,2"
                            Click="ButtonClick" />
                    <Button x:Name="GMAPart" Content="GMA/CMA Part" Margin="1,0,2,2"
                            Click="ButtonClick" />
                </StackPanel>
            </Grid>
        </StackPanel>

    </Grid>
</Window>
